/* 头部样式 */
.header {
    height: 80px;
    background: #fff;
    border-bottom: 2px solid #e1251b;
}

.header .container {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 20px 0;
}

.search {
    flex: 1;
    margin-left: 100px;
    display: flex;
}

.search input {
    width: 500px;
    height: 36px;
    padding: 0 15px;
    border: 2px solid #e1251b;
}

.search button {
    width: 80px;
    height: 36px;
    background: #e1251b;
    color: #fff;
    border: none;
    cursor: pointer;
}

/* 商品路径导航 */
.product-nav {
    padding: 15px 0;
    color: #666;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb .current {
    color: #333;
}

/* 商品信息区域 */
.product-info {
    display: flex;
    gap: 30px;
    padding: 20px;
    background: #fff;
}

/* 商品图片区域 */
.product-gallery {
    width: 400px;
}

.preview {
    width: 400px;
    height: 400px;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumb-list {
    display: flex;
    gap: 10px;
}

.thumb-item {
    width: 60px;
    height: 60px;
    border: 2px solid transparent;
    cursor: pointer;
}

.thumb-item.active {
    border-color: #e1251b;
}

/* 商品主信息区域 */
.product-main {
    flex: 1;
}

.product-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.product-desc {
    color: #e1251b;
    margin-bottom: 20px;
}

/* 价格区域 */
.price-line {
    background: #f7f7f7;
    padding: 10px;
    margin-bottom: 10px;
}

.label {
    display: inline-block;
    width: 60px;
    color: #999;
}

.price {
    color: #e1251b;
    font-size: 22px;
}

/* 选择区域 */
.choose-area {
    margin: 20px 0;
}

.choose-line {
    margin-bottom: 10px;
}

.choose-options {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-item {
    padding: 5px 15px;
    border: 1px solid #ddd;
    cursor: pointer;
}

.option-item.active {
    border-color: #e1251b;
    color: #e1251b;
}

/* 数量选择 */
.number-wrap {
    display: inline-flex;
    border: 1px solid #ddd;
}

.number-wrap button {
    width: 30px;
    height: 30px;
    border: none;
    background: #f7f7f7;
    cursor: pointer;
}

.number-input {
    width: 50px;
    height: 30px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

/* 按钮区域 */
.action-area {
    margin-top: 30px;
}

.action-area button {
    width: 180px;
    height: 40px;
    margin-right: 10px;
    border: none;
    cursor: pointer;
}

.btn-buy {
    background: #e1251b;
    color: #fff;
}

.btn-cart {
    background: #ffeded;
    color: #e1251b;
    border: 1px solid #e1251b;
}

/* 商品详情选项卡 */
.product-tab {
    margin-top: 30px;
}

.tab-header {
    display: flex;
    border-bottom: 2px solid #e1251b;
}

.tab-item {
    padding: 10px 30px;
    cursor: pointer;
}

.tab-item.active {
    background: #e1251b;
    color: #fff;
}

.tab-content {
    padding: 20px;
    background: #fff;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
} 